Bump Go version in Dockerfile

This commit is contained in:
Denys Konovalov 2023-05-07 10:47:04 +02:00
parent b2d12c0389
commit 78b3fb251e
2 changed files with 7 additions and 8 deletions

@ -2,7 +2,8 @@ name: build and publish a Docker image
on: on:
push: push:
branches: ['master'] tags:
- 'v*'
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
@ -20,22 +21,20 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 uses: docker/login-action@v2
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata
id: meta id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 uses: docker/metadata-action@9v4
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,latest
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc uses: docker/build-push-action@v4
with: with:
context: . context: .
push: true push: true

@ -1,4 +1,4 @@
FROM golang:1.19-alpine FROM golang:1.20-alpine
LABEL org.opencontainers.image.source = "https://github.com/denyskon/teabag" LABEL org.opencontainers.image.source = "https://github.com/denyskon/teabag"