Skip to content

Commit

Permalink
ci: Docker publish fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Sep 6, 2024
1 parent ae51082 commit 8f664e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
do_prod_release: ${{ env.DO_PROD_RELEASE }}
do_dev_release: ${{ env.DO_DEV_RELEASE }}
release_tag: ${{ env.RELEASE_TAG }}
release_version: ${{ env.RELEASE_VERSION }}

native_linux:
name: native-image-linux
Expand Down Expand Up @@ -254,6 +255,8 @@ jobs:
docker-linux:
needs: [build, native_linux]
runs-on: ubuntu-latest
env:
DOCKER_SRC: fcli-other/fcli-docker/linux
steps:
- name: Check-out source code
uses: actions/checkout@v4
Expand All @@ -266,7 +269,6 @@ jobs:

- name: Build Linux images
run: |
export DOCKER_SRC=fcli-other/fcli-docker/linux
tar -zxvf ./artifacts/release-assets/fcli-linux.tgz -C ${DOCKER_SRC}
cd ${DOCKER_SRC}
docker build . --target fcli-scratch -t fcli-scratch
Expand All @@ -283,15 +285,15 @@ jobs:
- name: DEV - Tag Linux images
if: needs.build.outputs.do_dev_release
run: |
docker tag fcli-scratch fortifydocker/fcli:${RELEASE_TAG}
docker tag fcli-scratch fortifydocker/fcli:${{steps.build.outputs.release_tag}}
- name: PROD - Tag Linux images
if: needs.build.outputs.do_prod_release
run: |
docker tag fcli-scratch fortifydocker/fcli:latest
docker tag fcli-scratch fortifydocker/fcli:${{steps.create_prod_release.outputs.major}}
docker tag fcli-scratch fortifydocker/fcli:${{steps.create_prod_release.outputs.major}}.${{steps.create_prod_release.outputs.minor}}
docker tag fcli-scratch fortifydocker/fcli:${RELEASE_VERSION}
docker tag fcli-scratch fortifydocker/fcli:${{steps.build.outputs.release_version}}
# TODO Should we sign the images as well?
- name: Publish Linux Docker images
Expand Down

0 comments on commit 8f664e7

Please sign in to comment.