Skip to content

Commit

Permalink
Update docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem committed Oct 10, 2024
1 parent 167d14d commit 3f24b91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,16 +500,32 @@ jobs:
needs: [tag, ci]
runs-on: ubuntu-latest

env:
TAG: ${{ needs.tag.outputs.TAG }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: |
docker build -t zsv:latest .
docker images
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Push
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
echo "TODO: Tag and push on release"
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: false
tags: |
zsv:${{ env.TAG }}
zsv:latest
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RUN \
ARTIFACT_DIR=artifacts \
RUN_TESTS=false \
STATIC_BUILD=1 \
SKIP_ZIP_ARTIFACT=true \
SKIP_TAR_ARTIFACT=true \
SKIP_ZIP_ARCHIVE=true \
SKIP_TAR_ARCHIVE=true \
./scripts/ci-build.sh

FROM scratch
Expand Down

0 comments on commit 3f24b91

Please sign in to comment.