Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a8356f8e1 | |||
| 3c0d37a439 | |||
| 77444bcdac | |||
| 1f6ce384f0 | |||
| de71278bf9 |
@@ -11,10 +11,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
#runs-on: ubuntu-latest:docker://node:16-bullseye
|
||||||
|
#runs-on: ubuntu-latest:docker://debian:bullseye
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Print version and repository
|
- name: Print version and repository
|
||||||
run: echo "Runner working on repository ${{ gitea.repository }} and on tag ${{ GITHUB_REF_NAME }} ${{ gitea.ref_name }}"
|
run: echo "Runner working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
|
||||||
|
|
||||||
- name: Install Docker engine
|
- name: Install Docker engine
|
||||||
run: |
|
run: |
|
||||||
@@ -27,14 +29,17 @@ jobs:
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|
||||||
|
|
||||||
|
- name: Print docker images
|
||||||
|
run: docker images
|
||||||
|
|
||||||
- name: Git clone private repo
|
- name: Git clone private repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: staffadmin/gitea-runner
|
repository: ${{ gitea.repository }}
|
||||||
persist-credentials: false
|
# persist-credentials: false
|
||||||
ssh-strict: false
|
# ssh-strict: false
|
||||||
token: ${{ secrets.ACCESS_TOKEN_GIT }}
|
token: ${{ secrets.ACCESS_TOKEN_GIT }}
|
||||||
ssh-known-hosts: ${{ secrets.SSH_KNOWN_GITEA }}
|
# ssh-known-hosts: ${{ secrets.SSH_KNOWN_GITEA }}
|
||||||
|
|
||||||
- name: Login to docker private registry
|
- name: Login to docker private registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -48,4 +53,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ GITHUB_REF_NAME }}
|
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.ref_name }}
|
||||||
Reference in New Issue
Block a user