Skip to content

Update docker-release.yaml #22

Update docker-release.yaml

Update docker-release.yaml #22

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Docker Build Action
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE_NAME: starwarssounds_bot
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: elraro/StarWarsSounds_bot
fetch-depth: 0
token: ${{ github.token }}
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: docker/[email protected]
with:
push: false
load: true
tags: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
- name: Push
run: |
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest