Skip to content

Commit

Permalink
ci(pipeline): split docker away from go releaser
Browse files Browse the repository at this point in the history
The goreleaser job needs to run macos. Docker is not included in this
runner. Therefore we needed to split the docker build away from it.
  • Loading branch information
zeljkobekcic committed Aug 23, 2023
1 parent 77c2f32 commit e6ff515
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

Expand Down Expand Up @@ -56,6 +57,19 @@ jobs:
if: always()
run: cat post_build_output.txt

dockerrelease:
runs-on: ubuntu-latest
needs:
- goreleaser
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

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

Expand All @@ -76,6 +90,7 @@ jobs:
tags: |
ghcr.io/iits-consulting/otc-auth:latest
ghcr.io/iits-consulting/otc-auth:${{ env.RELEASE_VERSION }}
aur-publish:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e6ff515

Please sign in to comment.