Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Docker build and push #21

Docker build and push

Docker build and push #21

Workflow file for this run

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