Bump jinja2 from 3.1.4 to 3.1.5 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Container | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to github container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and tag latest docker image | |
run: | | |
docker build -f Dockerfile -t ghcr.io/${{ github.repository_owner }}/nuts:$GITHUB_SHA . | |
- name: Tag versioned image | |
run: docker tag ghcr.io/${{ github.repository_owner }}/nuts:$GITHUB_SHA ghcr.io/${{ github.repository_owner }}/nuts:latest | |
- name: Push the images | |
run: | | |
docker push ghcr.io/${{ github.repository_owner }}/nuts:latest | |
docker push ghcr.io/${{ github.repository_owner }}/nuts:$GITHUB_SHA |