1
Fork 0

Try to build with Gitea Actions
Master workflow / Build Docker image (push) Successful in 9s Details

This commit is contained in:
Jan-Lukas Else 2023-04-29 15:43:26 +02:00
parent 7c9f17bad8
commit d0e1530dab
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
name: Master workflow
on:
push:
branches: [ master ]
jobs:
docker:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Gitea container registry
run: |
BASE64_AUTH=`echo -n "$CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD" | base64`
mkdir -p ~/.docker
echo "{\"auths\": {\"$CI_REGISTRY\": {\"auth\": \"$BASE64_AUTH\"}}}" > ~/.docker/config.json
env:
CI_REGISTRY: git.jlel.se
CI_REGISTRY_USER: nologin
CI_REGISTRY_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: git.jlel.se/jlelse/goshort:latest