💻 Code: update ghcr image
Browse files- .github/workflows/main.yml +10 -1
.github/workflows/main.yml
CHANGED
@@ -37,6 +37,13 @@ jobs:
|
|
37 |
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
38 |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
- name: Get current version
|
41 |
id: get_version
|
42 |
run: |
|
@@ -73,4 +80,6 @@ jobs:
|
|
73 |
push: true
|
74 |
tags: |
|
75 |
yym68686/uni-api:latest
|
76 |
-
yym68686/uni-api:${{ steps.bump_version.outputs.new_version }}
|
|
|
|
|
|
37 |
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
38 |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
39 |
|
40 |
+
- name: Login to GitHub Container Registry
|
41 |
+
uses: docker/login-action@v2
|
42 |
+
with:
|
43 |
+
registry: ghcr.io
|
44 |
+
username: ${{ github.actor }}
|
45 |
+
password: ${{ secrets.PACK_TOKEN }}
|
46 |
+
|
47 |
- name: Get current version
|
48 |
id: get_version
|
49 |
run: |
|
|
|
80 |
push: true
|
81 |
tags: |
|
82 |
yym68686/uni-api:latest
|
83 |
+
yym68686/uni-api:${{ steps.bump_version.outputs.new_version }}
|
84 |
+
ghcr.io/${{ github.repository }}/uni-api:latest
|
85 |
+
ghcr.io/${{ github.repository }}/uni-api:${{ steps.bump_version.outputs.new_version }}
|