Skip to content

Commit

Permalink
Update docker_hub.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims committed Nov 6, 2022
1 parent f397ada commit 6c734dc
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
name: Push to Docker.io
on: workflow_dispatch
on:
workflow_dispatch:
create:
tags:
- .*

jobs:
install:
name: Build & Deploy in docker.io
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
# Production versions
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
# Production versions
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: somfyProtect2Mqtt/
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
minims/somfyprotect2mqtt:latest
minims/somfyprotect2mqtt:${{ github.ref_name }}

0 comments on commit 6c734dc

Please sign in to comment.