dzedz
This commit is contained in:
@@ -1,17 +1,23 @@
|
|||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
#https://docs.docker.com/build/ci/github-actions/push-multi-registries/
|
#https://docs.docker.com/build/ci/github-actions/push-multi-registries/
|
||||||
|
#https://www.devsync.se/ci/cd/docker/2023/10/27/gitea-runner-build-docker-containers.html
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
|
tags: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Print Gitea runner tag
|
||||||
|
run: echo ${{ env.GITEA_RUNNER_TAG }}
|
||||||
|
|
||||||
# INSTALL docker
|
# INSTALL docker
|
||||||
- run: apt-get update
|
- run: apt-get update
|
||||||
- run: apt-get -y install curl dnsutils
|
- run: apt-get -y install curl dnsutils
|
||||||
@@ -43,6 +49,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ vars.REGISTRY_DOCKER }}/user/app:latest
|
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:1.0.0
|
||||||
# secrets: |
|
# secrets: |
|
||||||
# GIT_AUTH_TOKEN=${{ secrets.ACCESS_TOKEN_GIT }}
|
# GIT_AUTH_TOKEN=${{ secrets.ACCESS_TOKEN_GIT }}
|
||||||
Reference in New Issue
Block a user