This repository has been archived on 2024-06-12. You can view files and clone it, but cannot push or open issues or pull requests.
ipserv/.gitea/workflows/docker-build-publish.yaml
nexy7574 fd9535c87a
All checks were successful
Build and Publish ipserv / build_and_publish (push) Successful in 10s
properly push both tags
2024-04-22 02:28:12 +01:00

19 lines
No EOL
693 B
YAML

name: Build and Publish ipserv
run-name: Build and Publish ipserv
on: [push]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t git.i-am.nexus/nex/ipserv:latest -t git.i-am.nexus/nex/ipserv:${{ gitea.sha }} .
- name: Log into container registry
run: |
docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus
- name: Push to container registry
run: |
docker push git.i-am.nexus/nex/ipserv:latest; docker push git.i-am.nexus/nex/ipserv:${{ gitea.sha }}