Some checks failed
arche-build-and-publish / gractwo-arche-build-test (push) Failing after 10s
32 lines
946 B
YAML
32 lines
946 B
YAML
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: build image
|
|
run: |
|
|
docker buildx build --platform linux/amd64 \
|
|
-t git.gractwo.pl/gractwo/arche:latest \
|
|
-t git.gractwo.pl/gractwo/arche:${{gitea.sha}} \
|
|
.
|
|
- name: Log in to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.gractwo.pl
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ gitea.token }}
|
|
- name: publish
|
|
run: docker push git.gractwo.pl/gractwo/arche:${{gitea.sha}}
|
|
- uses: actions-hub/kubectl@master
|
|
env:
|
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
|
with:
|
|
args: get pods |