tests updated #6
Workflow file for this run
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: 'DockerBuild' | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
Build_And_Push: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Log in to Github Docker Image Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.TOKEN_GITHUB }} | |
# Uncomment to use Docker Hub | |
# - name: Login to Docker Hub | |
# uses: docker/login-action@v3 | |
# with: | |
# username: ${{ secrets.USERNAME_DOCKERHUB }} | |
# password: ${{ secrets.TOKEN_DOCKERHUB }} | |
- name: Docker Meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
ghcr.io/${{ github.actor }}/ytdatakit | |
# ${{ secrets.DOCKERHUB_USERNAME }}/meme-search | |
tags: type=ref,event=tag | |
flavor: latest=true | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and Upload for AMD64 and ARM64 | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |