Merge pull request #67 from lvillis/dependabot/cargo/serde_json-1.0.138 #1
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 Publish | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CONTEXT: . | |
IMAGE_TAG: docker.io/lvillis/tcping:latest | |
jobs: | |
job1: | |
name: latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Login to registry | |
uses: docker/[email protected] | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
context: ${{ env.CONTEXT }} | |
platforms: linux/amd64 | |
file: Dockerfile | |
push: true | |
cache-from: type=registry,ref=${{ env.IMAGE_TAG }} | |
cache-to: type=inline | |
tags: ${{ env.IMAGE_TAG }} |