Skip to content

Commit

Permalink
Add dev gh action and image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rafsaf committed Aug 13, 2023
1 parent 6100e8b commit 50f83fc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dev_image_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: push dev image to dockerhub
on:
workflow_run:
workflows: ["tests"]
branches: [main]
types:
- completed

jobs:
push_dev_image_to_dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:latest
platforms: linux/amd64,linux/arm64

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

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- name: Build and push backuper image
uses: docker/build-push-action@v4
with:
file: Dockerfile
context: .
push: true
tags: rafsaf/backuper:dev
platforms: linux/amd64,linux/arm64

0 comments on commit 50f83fc

Please sign in to comment.