Updated Dockerfile #3
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: carbondate-docker-build | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: GHCR Login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.WSDL_GHCR_API_TOKEN }} | |
- name: Build docker image | |
run: | | |
docker build . -t ghcr.io/oduwsdl/carbondate:latest | |
docker push ghcr.io/oduwsdl/carbondate:latest | |
- name: Apply container metadata | |
uses: docker/[email protected] | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ghcr.io/oduwsdl/carbondate:latest |