install docker
Some checks failed
Docker Build / publish_api (push) Failing after 47s

This commit is contained in:
Lea 2024-01-24 10:44:47 +01:00
parent 608dada496
commit 3dd36230c9
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -14,8 +14,19 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
-
name: Docker meta - name: Install Docker
run: |-
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" > /etc/apt/sources.list.d/docker.list
apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y docker-ce-cli docker-buildx-plugin docker-compose-plugin
- name: Docker meta
id: meta id: meta
uses: actions/docker-metadata-action@v4 uses: actions/docker-metadata-action@v4
with: with:
@ -25,21 +36,21 @@ jobs:
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=sha type=sha
-
name: Set up QEMU - name: Set up QEMU
uses: actions/docker-setup-qemu-action@v2 uses: actions/docker-setup-qemu-action@v2
-
name: Set up Docker Buildx - name: Set up Docker Buildx
uses: actions/docker-setup-buildx-action@v2 uses: actions/docker-setup-buildx-action@v2
-
name: Login to registry - name: Login to registry
uses: actions/docker-login-action@v2 uses: actions/docker-login-action@v2
with: with:
registry: git.amogus.cloud registry: git.amogus.cloud
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push - name: Build and push
uses: actions/docker-build-push-action@v3 uses: actions/docker-build-push-action@v3
with: with:
context: . context: .