pipeline-test-docker/.forgejo/workflows/build.yml

27 lines
783 B
YAML
Raw Normal View History

2024-01-20 16:16:46 +01:00
on:
push:
branches:
- main
jobs:
docker:
2024-02-09 18:57:38 +01:00
runs-on: docker
2024-01-20 16:54:23 +01:00
container:
image: catthehacker/ubuntu:act-latest
2024-01-20 16:16:46 +01:00
steps:
- name: Checkout
2024-02-09 18:57:57 +01:00
uses: https://github.com/actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
2024-01-20 16:16:46 +01:00
- name: Login
2024-02-09 18:57:57 +01:00
uses: https://github.com/docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # 3.0.0
2024-01-20 16:16:46 +01:00
with:
registry: git.keine.cloud
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
2024-01-20 21:25:36 +01:00
2024-01-20 21:26:57 +01:00
- name: Build and push
2024-02-09 18:57:57 +01:00
uses: https://github.com/docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # 5.1.0
2024-01-20 21:26:57 +01:00
with:
push: true
2024-01-20 21:37:44 +01:00
tags: git.keine.cloud/${{ env.GITHUB_REPOSITORY }}:latest