Skip to content

Commit

Permalink
chore: migrate to github action environment files
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Jan 6, 2023
1 parent e714f98 commit b015263
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- run: cd .. && make patch

- id: prepare
run: echo "::set-output name=tag::$(cat ../version)"
run: echo "tag=$(cat ../version)" >> $GITHUB_ENV

- name: Build base image
uses: docker/build-push-action@v3
Expand All @@ -60,9 +60,9 @@ jobs:
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ steps.prepare.outputs.tag }}
org.opencontainers.image.revision=${{ env.tag }}
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository }}/harbor-${{ matrix.component }}-base:${{ steps.prepare.outputs.tag }}
tags: ghcr.io/${{ github.repository }}/harbor-${{ matrix.component }}-base:${{ env.tag }}

docker-image:
needs:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- run: cd .. && make patch

- id: prepare
run: echo "::set-output name=tag::$(cat ../version)"
run: echo "tag=$(cat ../version)" >> $GITHUB_ENV

- name: Build & Publish images
env:
Expand All @@ -131,7 +131,7 @@ jobs:
run: |
set -eux;
CTX="BUILDBIN=true VERSIONTAG=${{ steps.prepare.outputs.tag }} BASEIMAGETAG=${{ steps.prepare.outputs.tag }} MULTIARCH=${MULTIARCH} IMAGENAMESPACE=${IMAGENAMESPACE} BASEIMAGENAMESPACE=${BASEIMAGENAMESPACE} TRIVYFLAG=${TRIVYFLAG} CHARTFLAG=${CHARTFLAG} NOTARYFLAG=${CHARTFLAG} IMAGELABELS=${IMAGELABELS}"
CTX="BUILDBIN=true VERSIONTAG=${{ env.tag }} BASEIMAGETAG=${{ env.tag }} MULTIARCH=${MULTIARCH} IMAGENAMESPACE=${IMAGENAMESPACE} BASEIMAGENAMESPACE=${BASEIMAGENAMESPACE} TRIVYFLAG=${TRIVYFLAG} CHARTFLAG=${CHARTFLAG} NOTARYFLAG=${CHARTFLAG} IMAGELABELS=${IMAGELABELS}"
sudo make versions_prepare ${CTX};
Expand Down

0 comments on commit b015263

Please sign in to comment.