Testing migration to Docker actions v2.
This commit is contained in:
parent
5f6f1c96ad
commit
f97e8fd960
|
@ -97,8 +97,19 @@ jobs :
|
|||
run : |
|
||||
cat tests/_output/*
|
||||
|
||||
- name : Set up QEMU
|
||||
uses : docker/setup-qemu-action@v1
|
||||
|
||||
- name : Set up Docker Buildx
|
||||
uses : docker/setup-buildx-action@v1
|
||||
|
||||
- name : Login to DockerHub
|
||||
uses : docker/login-action@v1
|
||||
with :
|
||||
username : ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password : ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name : Determine Tag Name
|
||||
if : github.event_name == 'push' || github.event_name == 'schedule'
|
||||
id : tag
|
||||
run : |
|
||||
BRANCH_NAME=${GITHUB_REF#refs/heads/}
|
||||
|
@ -109,12 +120,10 @@ jobs :
|
|||
echo "::set-output name=TAG::${BRANCH_NAME}"
|
||||
|
||||
- name : Publish to Docker Hub
|
||||
uses : docker/build-push-action@v1
|
||||
if : github.event_name == 'push' || github.event_name == 'schedule'
|
||||
uses : docker/build-push-action@v2
|
||||
with :
|
||||
username : ${{ secrets.DOCKER_USERNAME }}
|
||||
password : ${{ secrets.DOCKER_PASSWORD }}
|
||||
repository : azuracast/azuracast_web_v2
|
||||
cache_froms : azuracast/azuracast_web_v2:latest
|
||||
tags : ${{ steps.tag.outputs.TAG }}
|
||||
context : .
|
||||
platforms : linux/amd64,linux/arm64
|
||||
cache-from : type=registry,ref=azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
||||
tags : azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
||||
push : true
|
||||
|
|
Loading…
Reference in New Issue