chore: workflow updated
This commit is contained in:
@@ -121,26 +121,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Write release version to env
|
- name: Build and push Docker image
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
CURRENT_SEMVER=${GITHUB_REF_NAME#v}
|
|
||||||
echo "CURRENT_SEMVER=$CURRENT_SEMVER" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v3
|
|
||||||
id: buildx
|
|
||||||
with:
|
with:
|
||||||
install: true
|
context: .
|
||||||
- name: Build for Dockerhub & ghcr.io
|
file: ./containerised/Dockerfile
|
||||||
run: |
|
push: true
|
||||||
docker build --platform linux/arm/v6,linux/arm64,linux/amd64 \
|
tags: |
|
||||||
-t ${{ secrets.DOCKERHUB_USERNAME }}/oxker:latest \
|
${{ secrets.DOCKERHUB_USERNAME }}/{{ github.event.repository.name }}:latest
|
||||||
-t ${{ secrets.DOCKERHUB_USERNAME }}/oxker:${{env.CURRENT_SEMVER}} \
|
${{ secrets.DOCKERHUB_USERNAME }}/{{ github.event.repository.name }}:${{env.CURRENT_SEMVER}}
|
||||||
-t ghcr.io/${{ github.repository_owner }}/${{ github.ref_name }}:latest \
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest
|
||||||
-t ghcr.io/${{ github.repository_owner }}/${{ github.ref_name }}:${{env.CURRENT_SEMVER}} \
|
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ env.CURRENT_SEMVER }}
|
||||||
--provenance=false --sbom=false \
|
platforms: linux/arm/v6,linux/arm64,linux/amd64
|
||||||
--push \
|
provenance: false
|
||||||
-f containerised/Dockerfile .
|
sbom: false
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Publish to crates.io #
|
# Publish to crates.io #
|
||||||
########################
|
########################
|
||||||
|
|||||||
Reference in New Issue
Block a user