52ba0e6290
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](9bb56186c3...1d96c772d1
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
20 lines
776 B
YAML
20 lines
776 B
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
name: GitHub Container Registry
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
|
|
- name: Login to GitHub Container Registry
|
|
run: echo ${{ secrets.GHCR_ACCESS_TOKEN }} | docker login ghcr.io -u luketainton --password-stdin
|
|
- name: Build image for GitHub Package Registry
|
|
run: docker build . --file Dockerfile --tag ghcr.io/luketainton/webexmemebot:${{ github.sha }} --tag ghcr.io/luketainton/webexmemebot:latest
|
|
- name: Push image to GitHub Package Registry
|
|
run: |
|
|
docker push ghcr.io/luketainton/webexmemebot:latest
|
|
docker push ghcr.io/luketainton/webexmemebot:${{ github.sha }}
|