Skip to content

fix(docker): Fix docker image name #17

fix(docker): Fix docker image name

fix(docker): Fix docker image name #17

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
run: |
docker build . --tag ghcr.io/rohit267/cloudflare-node-ddns:latest --tag ghcr.io/rohit267/cloudflare-node-ddns:${GITHUB_SHA::7}
docker push ghcr.io/rohit267/cloudflare-node-ddns:latest