Skip to content
name: push image to dockerhub on release
on:
release:
types:
- created
jobs:
push_latest_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:${{ github.ref_name }},rafsaf/backuper:latest
platforms: linux/amd64,linux/arm64