Skip to content

Commit

Permalink
Refactor docker workflow for better compatibility (#5)
Browse files Browse the repository at this point in the history
- Change workflow name to "Publish Docker"
  • Loading branch information
SmetDenis authored Mar 11, 2024
1 parent 363806f commit 50d44ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ jobs:
continue-on-error: true

docker:
name: Docker
name: Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 🐳 Building Docker Image
run: make build-docker
- name: Pull Docker Image
run: docker pull jbzoo/csv-blueprint

- name: 👍 Valid CSV file
run: |
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,37 @@
# @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:
name: 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 }}
tags: jbzoo/csv-blueprint:latest

0 comments on commit 50d44ae

Please sign in to comment.