mirror of
https://github.com/s83/docker-brudi-rclone.git
synced 2024-11-26 05:55:29 +00:00
Update main.yml
This commit is contained in:
parent
8ea29498dc
commit
451081cdfd
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -20,8 +20,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build -t sami/brudi-rclone:${{ github.ref }} .
|
if [[ ${{ github.ref }} == 'refs/heads/main' ]]; then
|
||||||
docker tag sami/brudi-rclone:${{ github.ref }} sami/brudi-rclone:latest
|
DOCKER_TAG=latest
|
||||||
|
else
|
||||||
|
DOCKER_TAG=${{ github.ref }}
|
||||||
|
fi
|
||||||
|
docker build -t sami/brudi-rclone:${DOCKER_TAG} .
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -31,5 +35,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Push image to Docker Hub
|
- name: Push image to Docker Hub
|
||||||
run: |
|
run: |
|
||||||
docker push sami/brudi-rclone:${{ github.ref }}
|
docker push sami/brudi-rclone:${DOCKER_TAG}
|
||||||
docker push sami/brudi-rclone:latest
|
|
||||||
|
Loading…
Reference in New Issue
Block a user