Skip to content

Commit

Permalink
Add GH actions workflow to build multiarch images
Browse files Browse the repository at this point in the history
  • Loading branch information
Leen15 committed Aug 22, 2024
1 parent 4b58eea commit 8966a0d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Push to Dockerhub

on:
push:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build and push the image
run: |
docker buildx build --push \
--tag leen15/docker-s3-dir-backup:latest \
--platform linux/amd64,linux/arm64 .

0 comments on commit 8966a0d

Please sign in to comment.