Skip to content

Commit

Permalink
Create build_and_push_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pbstriker38 authored Nov 25, 2023
1 parent c7d6229 commit b21c6cf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_and_push_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and push release to Docker Hub

on:
release:
types: [released]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: pbstriker38/is-ruby-dead
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit b21c6cf

Please sign in to comment.