This commit is contained in:
parent
6910d565c7
commit
42bcd0adf1
1 changed files with 0 additions and 14 deletions
|
@ -25,7 +25,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Remove temporary files
|
- name: Remove temporary files
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
id: remove-temp
|
id: remove-temp
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.extract-version.outputs.docker_tag }}
|
echo ${{ steps.extract-version.outputs.docker_tag }}
|
||||||
|
@ -33,30 +32,25 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install docker.io -y
|
apt-get install docker.io -y
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
with:
|
with:
|
||||||
# driver-opts: network=host
|
# driver-opts: network=host
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
|
@ -64,11 +58,3 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue