Skip to content

Commit

Permalink
testing github building action@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
cviolbarbosa committed Mar 18, 2024
1 parent c0e1198 commit eda523d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Build and Push to Docker Hub
on:
push:
branches:
- test
tags:
- '*.*.*'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
dockerfile: ./packaging/Dockerfile
push: true
tags: |
helyosframework/helyos_core:${{ github.ref }}
helyosframework/helyos_core:${{ github.ref }}-linux-amd64
helyosframework/helyos_core:${{ github.ref }}-linux-arm-v7
helyosframework/helyos_core:${{ github.ref }}-macos-mx
platforms: linux/amd64,linux/arm/v7,linux/amd64

0 comments on commit eda523d

Please sign in to comment.