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

34 lines
946 B
YAML
Raw Normal View History

2024-01-20 16:16:46 +01:00
on:
push:
branches:
- main
jobs:
docker:
2024-10-12 09:57:08 +02:00
runs-on: docker
2024-10-12 09:58:39 +02: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
2024-10-12 09:04:44 +02:00
- name: debug
2024-10-12 09:05:22 +02:00
shell: bash
2024-10-12 09:04:44 +02:00
run: |
2024-10-12 09:16:46 +02:00
echo "env from config: $A_TEST_ENV_NAME_1"
2024-10-12 09:04:44 +02:00
echo "docker host: $DOCKER_HOST"
2024-10-12 09:16:46 +02:00
2024-10-12 09:04:44 +02:00
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