ci: checkout code before creating tag

This commit is contained in:
Nicolas Meienberger 2023-08-05 16:29:21 +02:00
parent 2ed8fa934d
commit 08ec2b8ea0

View file

@ -14,6 +14,9 @@ jobs:
tag: ${{ steps.create_tag.outputs.tagname }} tag: ${{ steps.create_tag.outputs.tagname }}
steps: steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Tag - name: Create Tag
id: create_tag id: create_tag
uses: butlerlogic/action-autotag@stable uses: butlerlogic/action-autotag@stable
@ -31,6 +34,18 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push images - name: Build and push images
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with: