File tree 2 files changed +45
-5
lines changed
2 files changed +45
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Docker Image CI
1
+ name : dev: Docker Image CI
2
2
3
3
on :
4
4
release :
5
- types : [published, prereleased]
5
+ types : [prereleased]
6
+ push :
7
+ branches :
8
+ - next
6
9
7
10
jobs :
8
11
build :
31
34
with :
32
35
platforms : linux/arm64,linux/amd64
33
36
push : true
34
- tags : |
35
- rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }}
36
- ${{ github.event.release.prerelease && 'rsstranslator/rsstranslator:dev' || 'rsstranslator/rsstranslator:latest' }}
37
+ tags : rsstranslator/rsstranslator:dev,rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }}
37
38
38
39
Original file line number Diff line number Diff line change
1
+ name : latest:Docker Image CI
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+ push :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0 # Fetch all history for all tags and branches
18
+
19
+ - name : Get latest tag
20
+ id : latesttag
21
+ run : echo ::set-output name=tag::$(git describe --tags `git rev-list --tags --max-count=1`)
22
+
23
+ - name : Set up Docker Buildx
24
+ uses : docker/setup-buildx-action@v3
25
+
26
+ - name : Login to Docker Hub
27
+ uses : docker/login-action@v3
28
+ with :
29
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31
+
32
+ - name : Build and push multi-platform Docker images
33
+ uses : docker/build-push-action@v5
34
+ with :
35
+ platforms : linux/arm64,linux/amd64
36
+ push : true
37
+ tags : rsstranslator/rsstranslator:latest,rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }}
38
+
39
+
You can’t perform that action at this time.
0 commit comments