Fixed action
This commit is contained in:
parent
82d7c3b9fe
commit
64fd95517e
@ -20,20 +20,26 @@ jobs:
|
|||||||
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
token: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Build act-runner image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
docker build -t git.sh-edraft.de/sh-edraft.de/code-server:latest .
|
docker build -t git.sh-edraft.de/sh-edraft.de/code-server:latest .
|
||||||
|
|
||||||
|
- name: Login to registry git.sh-edraft.de
|
||||||
|
uses: https://github.com/docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: git.sh-edraft.de
|
||||||
|
username: ${{ secrets.CI_USERNAME }}
|
||||||
|
password: ${{ secrets.CI_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push image
|
||||||
|
run: docker push git.sh-edraft.de/sh-edraft.de/code-server:latest
|
||||||
|
|
||||||
on-push-deploy_sh-edraft:
|
on-push-deploy_sh-edraft:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: [gismo.sh-edraft.de, ubuntu-latest]
|
runs-on: [gismo.sh-edraft.de, ubuntu-latest]
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup docker
|
|
||||||
uses: https://github.com/papodaca/install-docker-action@main
|
|
||||||
- run: docker -v
|
|
||||||
|
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: https://github.com/actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user