2023-05-18 05:07:15 +00:00
|
|
|
name: Release
|
2023-05-17 23:24:51 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2023-05-18 01:14:34 +00:00
|
|
|
test:
|
2023-05-18 05:07:15 +00:00
|
|
|
uses: ./.gitea/workflows/test.yml
|
2023-05-18 01:14:34 +00:00
|
|
|
|
2023-05-18 05:07:15 +00:00
|
|
|
push-docker-image:
|
2023-05-17 23:24:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
2023-05-18 01:03:44 +00:00
|
|
|
needs: test
|
2023-05-18 04:41:42 +00:00
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
2023-05-17 23:24:51 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Authentication
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: git.1159.cl
|
2023-05-18 04:41:42 +00:00
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2023-05-17 23:24:51 +00:00
|
|
|
|
2023-05-18 01:29:41 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v4
|
2023-05-18 05:52:08 +00:00
|
|
|
env:
|
|
|
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
2023-05-18 01:29:41 +00:00
|
|
|
with:
|
|
|
|
push: true
|
2023-05-23 20:55:39 +00:00
|
|
|
tags: git.1159.cl/mario1159/1159cl:latest
|
2023-05-18 05:52:08 +00:00
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2023-05-18 01:29:41 +00:00
|
|
|
|