-
-
Notifications
You must be signed in to change notification settings - Fork 74
42 lines (32 loc) · 1.04 KB
/
Copy pathdev-docker-image.yml
File metadata and controls
42 lines (32 loc) · 1.04 KB
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
35
36
37
38
39
40
name: dev:Docker Image CI
permissions:
contents: read
packages: write
on:
release:
types: [prereleased]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Get latest tag
id: latesttag
run: echo ::set-output name=tag::$(git describe --tags `git rev-list --tags --max-count=1`)
- 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 multi-platform Docker images
uses: docker/build-push-action@v5
with:
platforms: linux/arm64,linux/amd64
push: true
tags: versun/rsstranslator:dev,versun/rsstranslator:${{ steps.latesttag.outputs.tag }},versun/rssbox:dev,versun/rssbox:${{ steps.latesttag.outputs.tag }}