Files
frietlijst/.gitea/workflows/build-and-publish.yaml
ivo 73b31b1935
All checks were successful
Build and Publish / build (push) Successful in 4s
prevent escaping
2024-04-22 10:01:16 +00:00

26 lines
520 B
YAML

name: Build and Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup token file
run: |
printf "%s" "$TOKEN" > src/token.json
env:
TOKEN: ${{ secrets.TOKEN }}
- name: Build and push Docker image
run: docker build -t 172.19.0.2:32768/frietlijst:$(git rev-parse --short HEAD) .