Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerdhoot committed Jul 20, 2023
1 parent 3915b3b commit 13b9e47
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
---
name: Release
name: Build Docker Containers

on:
push:
tags:
- '*'
branches:
- main
- sameerdhoot-patch-1
paths-ignore:
- "README.md"
- "LICENSE"
- ".gitignore"
workflow_dispatch:

jobs:
release:
build-alpine:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and publish the container image for ${{ github.repository }}:${{ github.ref_name }}
uses: macbre/push-to-ghcr@v9

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

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

- name: Login to Container Registry
uses: docker/login-action@v2
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
image_tag: ${{ github.ref_name }}
- name: Build and publish the container image for ${{ github.repository }}:latest
uses: macbre/push-to-ghcr@v9
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.REPO_WOLWEB_CI }}

- name: Build and Push Alpine Dockerfile
id: docker_build
uses: docker/[email protected]
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.REPO_WOLWEB_CI }}
dockerfile: Dockerfile
image_tag: latest
platforms: linux/arm64,linux/armhf,linux/386,linux/amd64
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:alpine
pull: false
context: .
file: Dockerfile

0 comments on commit 13b9e47

Please sign in to comment.