Skip to content

Commit

Permalink
Merge pull request #450 from OpenFn/fix_gh_action
Browse files Browse the repository at this point in the history
Fix gh action for ws-worker docker builds
  • Loading branch information
taylordowns2000 committed Nov 8, 2023
2 parents 7512681 + c5e7976 commit 7092250
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/dockerize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: openfn/ws-worker
- name: Branch name
id: branch_name
run: |
SOURCE_TAG=${GITHUB_REF#refs/tags/}
echo Source Tag: $SOURCE_TAG
VERSION_TAG=${SOURCE_TAG#@openfn/ws-worker}
echo Version Tag: $VERSION_TAG
DOCKER_TAG=${VERSION_TAG#@}
echo Docker Tag: $DOCKER_TAG
echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -31,5 +39,6 @@ jobs:
context: .
push: ${{ github.event_name != 'pull_request' }}
target: ws-worker
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
openfn/ws-worker:latest
openfn/ws-worker:${{ env.DOCKER_TAG }}

0 comments on commit 7092250

Please sign in to comment.