gitea: git login

This commit is contained in:
Ondrej Vlach 2023-12-09 02:58:12 +01:00
parent bd06362ae7
commit 932b91067c
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70

View File

@ -9,6 +9,12 @@ jobs:
name: tests name: tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Login to git.nanobyte.cz
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DEPLOYMENT_PACKAGE }}
password: ${{ secrets.DEPLOYMENT_PACKAGE }}
registry: git.nanobyte.cz
- uses: https://github.com/actions/checkout.git@v4 - uses: https://github.com/actions/checkout.git@v4
- name: Hash of Cargo.lock - name: Hash of Cargo.lock
id: get-hash id: get-hash
@ -42,6 +48,12 @@ jobs:
container: container:
image: ovlach/docker-gitea:v0.0.2-alpha image: ovlach/docker-gitea:v0.0.2-alpha
steps: steps:
- name: Login to git.nanobyte.cz
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DEPLOYMENT_PACKAGE }}
password: ${{ secrets.DEPLOYMENT_PACKAGE }}
registry: git.nanobyte.cz
- uses: https://github.com/actions/checkout.git@v4 - uses: https://github.com/actions/checkout.git@v4
- name: Login to git.nanobyte.cz - name: Login to git.nanobyte.cz
uses: https://github.com/docker/login-action@v3 uses: https://github.com/docker/login-action@v3
@ -61,6 +73,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [docker] # require tests to pass before deploy runs needs: [docker] # require tests to pass before deploy runs
steps: steps:
- name: Login to git.nanobyte.cz
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DEPLOYMENT_PACKAGE }}
password: ${{ secrets.DEPLOYMENT_PACKAGE }}
registry: git.nanobyte.cz
- name: Install kustomize - name: Install kustomize
run: | run: |
curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.3.0/kustomize_v5.3.0_linux_amd64.tar.gz -o kustomize.tar.gz && tar -xzf kustomize.tar.gz curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.3.0/kustomize_v5.3.0_linux_amd64.tar.gz -o kustomize.tar.gz && tar -xzf kustomize.tar.gz