Skip to content

Commit

Permalink
Create async_beta.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuffy2 authored May 8, 2024
1 parent 5ae3334 commit 2c2dde3
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/async_beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: async_beta - Build and Publish GitHub Container Docker Image
on:
release:
types: [published, edited]
push:
branches:
- async_beta
workflow_dispatch:

jobs:
async_beta_build_and_publish_docker_image:
if: github.repository_owner == 'snicker' && (github.event.release.target_commitish == 'async_beta' || github.ref_name == 'async_beta')
runs-on: ubuntu-latest
steps:
- name: GitHub Context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Debug Variables
run: |
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}"
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}"
echo "github.event.release.prerelease: ${{ github.event.release.prerelease }}"
echo "github.event.release.draft: ${{ github.event.release.draft }}"
- name: Checkout
uses: actions/[email protected]
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
type=raw, value=async_beta
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker Container
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2c2dde3

Please sign in to comment.