33 lines
625 B
YAML
33 lines
625 B
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: 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
|
|
|