feat(al): adds AL2023 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployment | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
types: | |
- closed | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
docker: | |
name: 🐳 dockerize | |
runs-on: ubuntu-latest | |
steps: | |
- name: 👇 Checkout | |
uses: actions/checkout@v3 | |
- name: 📦 Setup Docker QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: 📦 Setup Docker BuildX | |
uses: docker/setup-buildx-action@v2 | |
- name: 🪪 Docker Login | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🔪 Git Short Sha | |
run: echo "GITHUB_SHA_SHORT=`git rev-parse --short HEAD`" >> $GITHUB_ENV | |
- name: 🧱 Build and Push AL2 | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: . | |
file: Dockerfile.al2 | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest,${{ env.REGISTRY }}/${{ github.repository }}:${{ env.GITHUB_SHA_SHORT }} | |
- name: 🧱 Build and Push AL2023 | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
context: . | |
file: Dockerfile.al2023 | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest-2023,${{ env.REGISTRY }}/${{ github.repository }}:${{ env.GITHUB_SHA_SHORT }}-2023 |