Skip to content

Commit

Permalink
try out action
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Nov 2, 2023
1 parent 836bd05 commit f2ef6de
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/dockerize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: Build and push Docker images

on:
push:
branches: 'dockerize'
tags: '@openfn/ws-worker@**'

jobs:
build-and-push-worker-image:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: name/app
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -18,9 +26,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log tags from meta step
run: |
echo ${{ steps.meta.outputs.tags }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
context: .
push: ${{ github.event_name != 'pull_request' }}
target: ws-worker
tags: openfn/ws-worker:latest
tags: |
type=semver,pattern=openfn/ws-worker:{{raw}}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f2ef6de

Please sign in to comment.