Skip to content

Commit

Permalink
Create docker-image-on-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassius0924 authored Mar 8, 2024
1 parent 67337fe commit 9726c12
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker-image-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Push Docker Image On Release

on:
release:
types:
- published

jobs:

build:

runs-on: ubuntu-latest

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

- name: Set up QEMU
uses: docker/[email protected]

- name: Docker Setup Buildx
uses: docker/[email protected]

- name: Docker Login
uses: docker/[email protected]
with:
username: cassius0924
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: cassius0924/wechatter:${{ github.event.release.tag_name }}

0 comments on commit 9726c12

Please sign in to comment.