Skip to content

Commit

Permalink
Refactor docker workflow for better compatibility
Browse files Browse the repository at this point in the history
- Change workflow name to "Publish Docker"
- Add support for pull requests in release process
- Update docker actions to use latest versions and add QEMU setup
  • Loading branch information
Denis Smet committed Mar 11, 2024
1 parent 363806f commit f3d67d8
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,36 @@
# @see https://github.com/JBZoo/Csv-Blueprint
#

name: Publish Docker Image
name: Publish Docker

on:
release:
types: [ published ]
push:
branches:
- 'master'
pull_request:
branches:
- "*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: jbzoo/csv-blueprint:${{ env.GITHUB_REF_NAME }}

0 comments on commit f3d67d8

Please sign in to comment.