pipeline: bump checkout function v2 > v3 #137
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: Publish Archivar Docker | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build-and-publish-head: | |
runs-on: [ubuntu-latest] | |
if: github.ref == 'refs/heads/develop' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and Publish head Docker image | |
uses: VaultVulp/gp-docker-action@1.1.8 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
image-name: archivar | |
image-tag: head | |
dockerfile: docker/Dockerfile | |
build-and-publish-latest: | |
runs-on: [ubuntu-latest] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and Publish latest Docker image | |
uses: VaultVulp/gp-docker-action@1.1.8 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
image-name: archivar | |
image-tag: latest | |
dockerfile: docker/Dockerfile | |
build-context: . |