fix: push registry images with docker cli
This commit is contained in:
+26
-24
@@ -23,31 +23,33 @@ jobs:
|
|||||||
username: toutsu
|
username: toutsu
|
||||||
password: ${{ secrets.GIT_TOKEN }}
|
password: ${{ secrets.GIT_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Bot
|
- name: Build Bot image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker build \
|
||||||
context: .
|
--label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \
|
||||||
file: src/GmRelay.Bot/Dockerfile
|
-f src/GmRelay.Bot/Dockerfile \
|
||||||
push: true
|
-t git.codeanddice.ru/toutsu/gmrelay-bot:latest \
|
||||||
provenance: false
|
-t git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }} \
|
||||||
tags: |
|
.
|
||||||
git.codeanddice.ru/toutsu/gmrelay-bot:latest
|
|
||||||
git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }}
|
|
||||||
labels: |
|
|
||||||
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}
|
|
||||||
|
|
||||||
- name: Build and push Web
|
- name: Push Bot image
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
docker push git.codeanddice.ru/toutsu/gmrelay-bot:latest
|
||||||
context: .
|
docker push git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }}
|
||||||
file: src/GmRelay.Web/Dockerfile
|
|
||||||
push: true
|
- name: Build Web image
|
||||||
provenance: false
|
run: |
|
||||||
tags: |
|
docker build \
|
||||||
git.codeanddice.ru/toutsu/gmrelay-web:latest
|
--label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \
|
||||||
git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }}
|
-f src/GmRelay.Web/Dockerfile \
|
||||||
labels: |
|
-t git.codeanddice.ru/toutsu/gmrelay-web:latest \
|
||||||
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}
|
-t git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }} \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Push Web image
|
||||||
|
run: |
|
||||||
|
docker push git.codeanddice.ru/toutsu/gmrelay-web:latest
|
||||||
|
docker push git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }}
|
||||||
|
|
||||||
# ЧАСТЬ 2: Запускаем эти образы на самом сервере
|
# ЧАСТЬ 2: Запускаем эти образы на самом сервере
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user