-
Notifications
You must be signed in to change notification settings - Fork 84
34 lines (32 loc) · 1.01 KB
/
release-rsync-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: release rsync image
on:
push:
tags:
- docker-rsync-*
jobs:
release-rsync-image:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
- name: Login to DockerHub
uses: docker/login-action@v3.3.0
with:
username: utkuozdemir
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set image tag as env variable
run: echo "IMAGE_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/^docker-rsync-//')" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6.10.0
with:
context: ./docker/rsync/
platforms: linux/amd64,linux/arm,linux/arm64
push: true
tags: |
docker.io/utkuozdemir/pv-migrate-rsync:latest
docker.io/utkuozdemir/pv-migrate-rsync:${{ env.IMAGE_VERSION }}