1159cl/.gitea/workflows/docker.yml
Mario1159 f5b945236a
Some checks failed
Build docker image / test (push) Successful in 28s
Build docker image / build-image (push) Failing after 50s
Update workflows
2023-05-17 22:24:57 -04:00

53 lines
1.5 KiB
YAML

name: Build docker image
on:
push:
branches: [ main ]
jobs:
test:
uses: ./.gitea/workflows/deno.yml
build-image:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update repository
run: apt update
- name: Install docker
run: |
apt-get update
apt-get install ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/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/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: test docker
run: docker login
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ github.repository_owner }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: mario1159/1159cl:latest