This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
Docker build and push #21
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: Docker build and push | |
on: | |
push: | |
paths: freenom.sh | |
branches: [master, main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
docker-images: | |
name: Build Docker images and push to repositories | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build images | |
run: make docker | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GHCR_PAT }} | |
- name: Push image | |
run: | | |
docker tag freenom-script:latest ghcr.io/mkorthof/freenom_script:latest | |
docker tag freenom-script:alpine ghcr.io/mkorthof/freenom_script:alpine | |
docker push ghcr.io/mkorthof/freenom_script:latest | |
docker push ghcr.io/mkorthof/freenom_script:alpine |