start over from example code

This commit is contained in:
Ray Lyon
2022-04-06 19:11:49 -04:00
committed by GitHub
parent dcd3ed1c74
commit 20ec1adc85

View File

@@ -8,31 +8,29 @@ env:
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build-and-push-image: push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- uses: actions/checkout@v3 - name: Check out the repo
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - name: Log in to Docker Hub
with: uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
username: ${{ secrets.DOCKER_USERNAME }} with:
password: ${{ secrets.DOCKER_PASSWORD }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta - name: Extract metadata (tags, labels) for Docker
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 id: meta
with: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
images: skoobasteeve/${{ env.IMAGE_NAME }} with:
images: skoobasteeve/telegram-moviebot
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc - name: Build and push Docker image
with: uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
context: . with:
push: true context: .
tags: ${{ steps.meta.outputs.tags }} push: true
labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}