Add sha tags to docker builds
All checks were successful
Build and deploy / deploy (push) Successful in 58s
All checks were successful
Build and deploy / deploy (push) Successful in 58s
This commit is contained in:
@@ -9,28 +9,29 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
github-server-url: 'https://gitea.home.joemonk.co.uk'
|
github-server-url: 'https://gitea.home.joemonk.co.uk'
|
||||||
-
|
|
||||||
name: Set up docker
|
- name: Set up docker
|
||||||
run: 'curl -fsSL https://get.docker.com | sh'
|
run: 'curl -fsSL https://get.docker.com | sh'
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
-
|
|
||||||
name: Login to private registry
|
- name: Login to private registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: 'gitea.home.joemonk.co.uk/${{ github.repository }}'
|
registry: 'gitea.home.joemonk.co.uk/${{ github.repository }}'
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
-
|
|
||||||
name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: 'gitea.home.joemonk.co.uk/${{ gitea.repository }}:latest'
|
tags: |
|
||||||
|
gitea.home.joemonk.co.uk/${{ gitea.repository }}:latest
|
||||||
|
gitea.home.joemonk.co.uk/${{ gitea.repository }}:${{ gitea.sha }}
|
||||||
Reference in New Issue
Block a user