Skip to content

Commit

Permalink
Merge pull request #490 from DannyBen/add/docker-build-action
Browse files Browse the repository at this point in the history
Build multi-arch docker image using GitHub Actions
  • Loading branch information
DannyBen authored Feb 8, 2024
2 parents a2eb37c + 999e819 commit 4ff5d81
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/debug.yml

This file was deleted.

File renamed without changes.
28 changes: 28 additions & 0 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Docker build (version + latest)
on:
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+' }

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract tag
run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- 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@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: dannyben/bashly,dannyben/bashly:${{ env.TAG }}

0 comments on commit 4ff5d81

Please sign in to comment.