build&publish workflow wip: build only
Some checks failed
arche-build-and-publish / gractwo-arche-build-test (push) Has been cancelled
Some checks failed
arche-build-and-publish / gractwo-arche-build-test (push) Has been cancelled
This commit is contained in:
24
.gitea/workflows/build-and-publish.yaml
Normal file
24
.gitea/workflows/build-and-publish.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: arche-build-and-publish
|
||||
run-name: arche build & publish by ${{gitea.actor}} on ${{gitea.ref_name}}
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
gractwo-arche-build-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v4
|
||||
- name: set short SHA
|
||||
run: echo "SHORT_SHA=${GITEA_SHA::7}" >> $GITEA_ENV
|
||||
- name: set up docker
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
- name: set up docker buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: build image
|
||||
run: docker buildx build --platform linux/amd64 \
|
||||
-t git.gractwo.pl/gractwo/arche:latest \
|
||||
-t git.gractwo.pl/gractwo/arche:${{env.SHORT_SHA}} \
|
||||
.
|
||||
Reference in New Issue
Block a user