fix: Reorders container authentication, and removes custom permissions.
Some checks failed
Release code / build (push) Failing after 6m8s
Some checks failed
Release code / build (push) Failing after 6m8s
This commit is contained in:
parent
50281df8d0
commit
ed90f66b2b
1 changed files with 5 additions and 7 deletions
|
@ -13,8 +13,6 @@ jobs:
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
env:
|
env:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code using Git
|
- name: Checkout code using Git
|
||||||
|
@ -27,11 +25,6 @@ jobs:
|
||||||
docker context create forgejo --docker host=tcp://dind:2375
|
docker context create forgejo --docker host=tcp://dind:2375
|
||||||
docker context use forgejo
|
docker context use forgejo
|
||||||
|
|
||||||
- name: Build Docker images
|
|
||||||
run: |
|
|
||||||
docker build ./backend --tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME
|
|
||||||
docker build ./sshfrontend --tag git.terah.dev/imterah/hermes-lom:$GITHUB_REF_NAME
|
|
||||||
|
|
||||||
- name: Log in to our container registry
|
- name: Log in to our container registry
|
||||||
uses: https://github.com/docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -39,6 +32,11 @@ jobs:
|
||||||
username: ${{github.actor}}
|
username: ${{github.actor}}
|
||||||
password: ${{secrets.GITHUB_TOKEN}}
|
password: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
|
- name: Build Docker images
|
||||||
|
run: |
|
||||||
|
docker build ./backend --tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME
|
||||||
|
docker build ./sshfrontend --tag git.terah.dev/imterah/hermes-lom:$GITHUB_REF_NAME
|
||||||
|
|
||||||
- name: Upload all Docker images
|
- name: Upload all Docker images
|
||||||
run: |
|
run: |
|
||||||
docker tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME git.terah.dev/imterah/hermes:latest
|
docker tag git.terah.dev/imterah/hermes:$GITHUB_REF_NAME git.terah.dev/imterah/hermes:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue