fix(cicd): remove if statements
Some checks failed
Build / build (push) Failing after 1m6s

This commit is contained in:
Jiří Štefka 2023-11-21 20:46:36 +01:00
parent 6910d565c7
commit 42bcd0adf1
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE

View file

@ -25,7 +25,6 @@ jobs:
shell: bash
- name: Remove temporary files
if: steps.check-existing.conclusion == 'success'
id: remove-temp
run: |
echo ${{ steps.extract-version.outputs.docker_tag }}
@ -33,30 +32,25 @@ jobs:
shell: bash
- name: Install Docker
if: steps.check-existing.conclusion == 'success'
run: |
apt-get update
apt-get install docker.io -y
- name: Login to DockerHub
if: steps.check-existing.conclusion == 'success'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
if: steps.check-existing.conclusion == 'success'
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
if: steps.check-existing.conclusion == 'success'
uses: docker/setup-buildx-action@v1
with:
# driver-opts: network=host
platforms: linux/amd64,linux/arm64
- name: Build and push image
if: steps.check-existing.conclusion == 'success'
uses: docker/build-push-action@v2
with:
push: true
@ -64,11 +58,3 @@ jobs:
platforms: linux/amd64,linux/arm64
context: .
file: ./Dockerfile
- name: Image already built
id: image-built
if: steps.check-existing.conclusion == 'failure'
run: |
echo "Image was already built and uploaded"
exit 0
shell: bash