1159cl/.gitea/workflows/release.yml
Mario Romero cf0c90a8e8
All checks were successful
Release / test (push) Successful in 40s
Release / push-docker-image (push) Successful in 1m44s
Update '.gitea/workflows/release.yml'
2023-05-23 20:55:39 +00:00

39 lines
846 B
YAML

name: Release
on:
push:
branches: [ main ]
jobs:
test:
uses: ./.gitea/workflows/test.yml
push-docker-image:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: test
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
push: true
tags: git.1159.cl/mario1159/1159cl:latest
context: .
file: ./Dockerfile