I have no idea if this works but fullsend it anyway
Some checks failed
Build and push container image / build (push) Has been cancelled
Some checks failed
Build and push container image / build (push) Has been cancelled
This commit is contained in:
parent
41ea1fce70
commit
b190d911c0
@ -7,7 +7,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04-node
|
runs-on: ubuntu-22.04-node
|
||||||
steps:
|
steps:
|
||||||
- name: Install and setup Docker
|
- name: Setup Docker environment
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install -y apt-transport-https ca-certificates curl gnupg lsb-release
|
apt install -y apt-transport-https ca-certificates curl gnupg lsb-release
|
||||||
@ -17,14 +17,24 @@ jobs:
|
|||||||
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt update
|
apt update
|
||||||
apt install -y docker-ce docker-ce-cli containerd.io
|
apt install -y docker-ce docker-ce-cli containerd.io
|
||||||
|
|
||||||
|
- name: Setup the build cache
|
||||||
|
uses: actions/cache@v3 # v3.3.2
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: ${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Checkout branch
|
- name: Checkout branch
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
|
||||||
with:
|
with:
|
||||||
registry: git.toast-server.net
|
registry: git.toast-server.net
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
|
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user